package jin.si.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * ClassName:jsUserCollection
 * Package:jin.si.pojo
 * Description:
 *
 * @Date:2022/3/14 16:02
 * @Author: XJR
 */
public class JsUserCollection {
  private Integer collectionId;
  private Integer userId;
  private Integer collectionType;
  private Integer productId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date collectionDate;
  private Integer collectionPrice;
  private Integer productCurrentprice;
  private String productInformation;
  private String remarks;

  public JsUserCollection() {
    super();
  }

  public JsUserCollection(Integer collectionId, Integer userId, Integer collectionType, Integer productId, Date collectionDate, Integer collectionPrice, Integer productCurrentprice, String productInformation, String remarks) {
    this.collectionId = collectionId;
    this.userId = userId;
    this.collectionType = collectionType;
    this.productId = productId;
    this.collectionDate = collectionDate;
    this.collectionPrice = collectionPrice;
    this.productCurrentprice = productCurrentprice;
    this.productInformation = productInformation;
    this.remarks = remarks;
  }

  public Integer getCollectionId() {
    return collectionId;
  }

  public void setCollectionId(Integer collectionId) {
    this.collectionId = collectionId;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getCollectionType() {
    return collectionType;
  }

  public void setCollectionType(Integer collectionType) {
    this.collectionType = collectionType;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public Date getCollectionDate() {
    return collectionDate;
  }

  public void setCollectionDate(Date collectionDate) {
    this.collectionDate = collectionDate;
  }

  public Integer getCollectionPrice() {
    return collectionPrice;
  }

  public void setCollectionPrice(Integer collectionPrice) {
    this.collectionPrice = collectionPrice;
  }

  public Integer getProductCurrentprice() {
    return productCurrentprice;
  }

  public void setProductCurrentprice(Integer productCurrentprice) {
    this.productCurrentprice = productCurrentprice;
  }

  public String getProductInformation() {
    return productInformation;
  }

  public void setProductInformation(String productInformation) {
    this.productInformation = productInformation;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "jsUserCollection{" +
            "collectionId=" + collectionId +
            ", userId=" + userId +
            ", collectionType=" + collectionType +
            ", productId=" + productId +
            ", collectionDate=" + collectionDate +
            ", collectionPrice=" + collectionPrice +
            ", productCurrentprice=" + productCurrentprice +
            ", productInformation='" + productInformation + '\'' +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}